package com.itheima.a01mymap;

import java.util.TreeMap;

public class A04_TreeMapDemo1 {
    public static void main(String[] args) {
        //创建TreeMap集合
        TreeMap<Integer,Character> tm = new TreeMap<>((o1,o2)->o2-o1);
        tm.put(1, 'A');
        tm.put(12, 'C');
        tm.put(3, 'B');
        tm.put(41, 'D');

        System.out.println(tm);
    }
}
